package cn.wang.open.sso.server.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.wang.open.sso.dao.mapper.SystemMapper;
import cn.wang.open.sso.dao.model.System;

/**
 * 认可的子系统
 */
@Service
public class SystemService {

	private static Logger logger = LoggerFactory.getLogger(SystemService.class);

    @Autowired
    private SystemMapper systemMapper;

	public System selectEssSystemByName(String name) {
		System essSystem = new System();
		essSystem.setName(name);
		return systemMapper.selectOne(essSystem);
	}
	
}
